package com.xiaobai.customer.exception;


import feign.FeignException;

public class BusinessFeignException extends FeignException {

    private static final long serialVersionUID = 1L;

    private final int errorCode;

    private final String errorMsg;

    public BusinessFeignException(int status, int errorCode, String errorMsg) {
        super(status, "");
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public final int getErrorCode() {
        return errorCode;
    }

    public final String getErrorMsg() {
        return errorMsg;
    }
}

